﻿<%@ Page Language="C#" MasterPageFile="~/Master/EditMasterPage.master" AutoEventWireup="True" Inherits="Web.Column_Edit" Title="" Codebehind="Edit.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="edit_table" border="1" cellpadding="0" cellspacing="0">
        <tr>
            <td class="edit_alt_item td1">
                栏目名称：</td>
            <td class="td2">
                <asp:TextBox ID="txt_Title" runat="server" ValidationGroup="Save"
                    newfield="Title" newtype="string" notice="栏目名称" null="False"
                    CssClass="t_common" MaxLength="50" size="50" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorTitle" runat="server" 
                    ControlToValidate="txt_Title" CssClass="warning" Display="Dynamic"
                    ErrorMessage="必须填写" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorTitle" runat="server" 
                    ControlToValidate="txt_Title" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="字符数要小于50" ValidationExpression="^.{0,49}" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>
                <span ishow="false" style="color: Red;">*</span>
            </td>
            <td class="edit_alt_item td3">
                </td>
            <td class="td4">
                
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item td1">
                简要：</td>
            <td class="td2" colspan="3">
                <asp:TextBox ID="txt_Info" runat="server" ValidationGroup="Save" TextMode="MultiLine"
                    newfield="Info" newtype="string" notice="简要" null="True"
                    CssClass="t_area" MaxLength="255" size="255" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorInfo" runat="server" 
                    ControlToValidate="txt_Info" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="字符数要小于255" ValidationExpression="^.{0,254}" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item td1">
                是否是外部链接：</td>
            <td class="td2">
                <asp:TextBox ID="txt_IsOut" runat="server" ValidationGroup="Save"
                    newfield="IsOut" newtype="int" notice="是否是外部链接" null="True"
                    CssClass="t_longnum" MaxLength="4" size="4" />
            </td>
            <td class="edit_alt_item td3">
                外部链接：</td>
            <td class="td4">
                <asp:TextBox ID="txt_OutURL" runat="server" ValidationGroup="Save"
                    newfield="OutURL" newtype="string" notice="外部链接" null="True"
                    CssClass="t_common" MaxLength="255" size="255" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorOutURL" runat="server" 
                    ControlToValidate="txt_OutURL" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="字符数要小于255" ValidationExpression="^.{0,254}" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item td1">
                是否允许回复：</td>
            <td class="td2">
                <asp:CheckBox ID="txt_IsReview" runat="server" ValidationGroup="Save"
                    newfield="IsReview" newtype="int" notice="是否允许回复" null="True" />
            </td>
            <td class="edit_alt_item td1">
                是否置顶：</td>
            <td class="td2">
                <asp:CheckBox ID="txt_IsTop" runat="server" ValidationGroup="Save"
                    newfield="IsTop" newtype="int" notice="是否置顶" null="True" />
            </td>
        </tr>
        <tr runat="server" visible="false">
            <td class="edit_alt_item td3">
                模板id：</td>
            <td class="td4">
                <asp:TextBox ID="txt_TemplateId" runat="server" ValidationGroup="Save"
                    newfield="TemplateId" newtype="int" notice="模板id" null="True"
                    CssClass="t_longnum" MaxLength="4" size="4" />
            </td>
             <td class="edit_alt_item td1">
                内容模板id：</td>
            <td class="td2">
                <asp:TextBox ID="txt_ContentTemp" runat="server" ValidationGroup="Save"
                    newfield="ContentTemp" newtype="int" notice="内容模板id" null="True"
                    CssClass="t_longnum" MaxLength="4" size="4" />
            </td>
       </tr>
        <tr>
            <td class="edit_alt_item td3">
                每页显示的数目：</td>
            <td class="td4" colspan="3">
                <asp:TextBox ID="txt_PageSize" runat="server" ValidationGroup="Save"
                    newfield="PageSize" newtype="int" notice="每页显示的数目" null="True"
                    CssClass="t_longnum" MaxLength="4" size="4" />
            </td>
        </tr>
    </table>

    <div class="edit_btn_group">
        <asp:Button ID="saveButton" CssClass="btn_Button" runat="server" OnClick="saveButton_Click" OnClientClick="return Checked();" Text="保存" ValidationGroup="Save"></asp:Button>
        &nbsp;&nbsp;
        <input type="button" ishow="true" class="btn_Button" id="returnInput" runat="server" onclick="window.close();" value="关闭" />
    </div>
</asp:Content>

